/**
 * block.css
 *
 * Styles for blocks
 */

/* Resets */
.block {
    border: none;
}

.block h1,
.block h2,
.block h3,
.block h4 {
    margin: 0;
}

.block,
.block .content {
    margin-bottom: 0;
}

/* Features */
.block {
    margin-bottom: [[setting:blockspace]];
}

.block .header {
    height: [[setting:headingheight]];
    margin: 0;
    padding: 0;
    border: 1px solid [[setting:blockborder_fore]];
    background: [[setting:blockheader_back]] [[setting:blockheadback]] repeat-x;
    border-top-left-radius: [[setting:blockcorner]];
    border-top-right-radius: [[setting:blockcorner]];
    -moz-border-radius-topleft: [[setting:blockcorner]];
    -moz-border-radius-topright: [[setting:blockcorner]];
    -webkit-border-top-left-radius: [[setting:blockcorner]];
    -webkit-border-top-right-radius: [[setting:blockcorner]];
}

.block .content {
    overflow: hidden;
    background-color: [[setting:block_back]];
    background: [[setting:block_back]] no-repeat;
    padding: 0.5em;
    color: [[setting:block_fore]];
    border-color: [[setting:blockborder_back]];
    border-style: solid;
    border-width: 1px;
    border-top: none;
    border-bottom-left-radius: [[setting:blockcorner]];
    border-bottom-right-radius: [[setting:blockcorner]];
    -moz-border-radius-bottomleft: [[setting:blockcorner]];
    -moz-border-radius-bottomright: [[setting:blockcorner]];
    -webkit-border-bottom-left-radius: [[setting:blockcorner]];
    -webkit-border-bottom-right-radius: [[setting:blockcorner]];
}

.block .header .title {
    color: #000;
    padding: .25em .5em;
}

.block .header .title h2 {
    font-size: 1rem;
    line-height: 2;
    margin: 0 0 0 4px;
    color: [[setting:blockheader_fore]] !important;
    text-shadow: -1px 1px 1px [[setting:titleshadow_back]];
}

.block .header .title .block_action {
    height: [[setting:headingheight]];
    margin: 5px 0;
}

.block .header .title .block_action img {
    margin-top: [[setting:blockcontroltop]];
}

/* Course summary block border-top, because it has no block header */
.block_course_summary .content {
    border-color: [[setting:blockborder_back]];
    border-top: 1px solid [[setting:blockborder_back]];
    -moz-border-radius-topleft: [[setting:blockcorner]];
    -moz-border-radius-topright: [[setting:blockcorner]];
    -webkit-border-top-left-radius: [[setting:blockcorner]];
    -webkit-border-top-right-radius: [[setting:blockcorner]];
    border-top-left-radius: [[setting:blockcorner]];
    border-top-right-radius: [[setting:blockcorner]];
}

.editing .block_course_summary .content {
    border-top: none;
    -moz-border-radius-topleft: 0;
    -moz-border-radius-topright: 0;
    -webkit-border-top-left-radius: 0;
    -webkit-border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
/* End course summary block border-top */

/* Navigation block expansion code */
.block_js_expansion .block_tree {
    overflow-x: scroll;
}

.block_js_expansion.mouseover .content {
    width: 200%;
    z-index: 1000;
    position: relative;
}

.block_js_expansion.mouseover .content .block_tree {
    width: 100%;
    padding-bottom: 0;
    background-color: [[setting:dock_back]];
}

/* Administration block search input */
.block_settings .adminsearchform input[type=text] {
    width: 60%;
}
